import Hello from './components/hello/index'
import Container from './components/container/index'
import DataGrid from './components/datagrid/index'
import Modal from './components/modal/index'
import MyCountTo from './components/my-count-to/index'
import ProgressBar from './components/progress-bar/index'
import ProgressBarWith2Value from './components/progress-bar-with-2-value/index'
import HSelect from './components/select/index'
import VSelect from './components/select2/index'
import Tab from './components/tab/index'
import VueCountTo from './components/VueCountTo/index'

const components = {
    Hello,
    VueCountTo,
    Container,
    DataGrid,
    Modal,
    MyCountTo,
    ProgressBar,
    ProgressBarWith2Value,
    HSelect,
    VSelect,
    Tab,
}

const install = function (Vue) {
    Object.keys(components).forEach(component => {
        let com = components[component];
        com(Vue)
    })
}

// if (window && window.Vue) {
//     Vue.use(install)
// }

export default install
